<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<div>
		</div>
		<script src="js/jquery.js"></script>
		<script src="js/all.js"></script>
		<script>
//			HaveBeenTo
			//判断跳转到那个页面
			if(window.localStorage.HaveBeenTo == undefined){
				
				 location.href="guide.html";
			}else{
				if(window.localStorage.userName != undefined && window.localStorage.Password != undefined){
					$.ajax({
						type:"post",
						url:Url+"/user/mobilePhoneLogin",
						xhrFields:{
							withCredentials: true
						},
						data:{
							"userName": window.localStorage.userName,
							"Password": window.localStorage.Password
						},
						success:((data)=>{
							console.log(data);
							
							popup(data.message);
							if(data.success){
								 
 								location.href = "home-page.html";
							}
						}),
						error:((error)=>{
							console.log(error);
						})
					})
					
			 
				}else{
					location.href="home-page.html";
				}
				
				
				
			}
			
			
			
			
		 
			
		</script>
	</body>
</html>
